<template>
  <div>
    App
    <hr />
    <Test v-if="state.bBar" />
    <button @click="state.bBar = !state.bBar">卸载 Test</button>
  </div>
</template>

<script>
import Test from './Test.vue'
import { reactive } from 'vue'
export default {
  components: {
    Test,
  },
  setup() {
    const state = reactive({
      bBar: true,
    })
    return {
      state,
    }
  },
}
</script>
